Reduce GTK tool-bar switching delay by avoiding selective show/hide of widgets.
authorChong Yidong <cyd@stupidchicken.com>
Sat, 1 Jan 2011 06:02:36 +0000 (01:02 -0500)
committerChong Yidong <cyd@stupidchicken.com>
Sat, 1 Jan 2011 06:02:36 +0000 (01:02 -0500)
commit504a7658c57e0d20d22ba72ba8d5a38148cf052c
tree7a62acb87d10e04afac93426d6babe2bd85f6b72
parent2d33d18337320f5c0cd1c0627caa6528f7050b29
Reduce GTK tool-bar switching delay by avoiding selective show/hide of widgets.

* src/gtkutil.c (xg_get_tool_bar_widgets): Use NULL for a missing
image or label in the container.
(xg_make_tool_item): Replace VERT_ONLY arg with HORIZ, TEXT_IMAGE.
(xg_show_toolbar_item): Function deleted.
(xg_tool_item_stale_p): New function.
(update_frame_tool_bar): Calculate tool-bar style once per call.
Instead of hiding text labels, omit them.  Don't use
xg_show_toolbar_item; create new GtkToolItems from scratch if
necessary, instead of trying to re-use them.  This avoids an
annoying animation when changing tool-bars.
src/ChangeLog
src/gtkutil.c